home *** CD-ROM | disk | FTP | other *** search
/ Eagles Nest BBS 8 / Eagles_Nest_Mac_Collection_Disc_8.TOAST / Developer Tools⁄Additions / TMONPro301#3 / TMON Pro. Three / Discipline / Discipline Examples / unequalByte.c < prev   
MacBinary  |  1991-04-09  |  1.6 KB  |  [TEXT/MPS ]

view JSON data     |     view as text     |     open on a Mac     |     open on a PC

This file was processed as: MacBinary (archive/macBinary).

You can browse this item here: unequalByte.c

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert Compact Compressed (Unix) (archive/compact) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Tue Apr 9 11:58:11 1991, modified Tue Apr 9 11:58:11 1991, creator 'MPS ', type ASCII, 1004 bytes "unequalByte.c" , at 0x46c 428 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[MPS ]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0d 75 6e 65 71 75 61 | 6c 42 79 74 65 2e 63 00 |..unequa|lByte.c.|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 50 53 | 20 01 00 00 00 00 00 00 |.TEXTMPS| .......|
|00000050| 00 00 00 00 00 03 ec 00 | 00 01 ac a4 27 95 13 a4 |........|....'...|
|00000060| 27 95 13 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |'.......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 b5 4f 00 00 |........|.....O..|
|00000080| 23 69 6e 63 6c 75 64 65 | 09 3c 54 79 70 65 73 2e |#include|.<Types.|
|00000090| 68 3e 0d 0d 70 61 73 63 | 61 6c 09 63 68 61 72 09 |h>..pasc|al.char.|
|000000a0| 2a 74 68 65 54 65 73 74 | 09 28 6c 6f 6e 67 09 2a |*theTest|.(long.*|
|000000b0| 73 65 6c 65 63 74 6f 72 | 29 0d 7b 0d 63 68 61 72 |selector|).{.char|
|000000c0| 09 6f 6e 65 3b 0d 63 68 | 61 72 09 61 6e 6f 74 68 |.one;.ch|ar.anoth|
|000000d0| 65 72 3b 0d 0d 73 77 69 | 74 63 68 20 28 73 65 6c |er;..swi|tch (sel|
|000000e0| 65 63 74 6f 72 5b 30 5d | 29 0d 09 7b 0d 09 63 61 |ector[0]|)..{..ca|
|000000f0| 73 65 20 30 20 3a 09 09 | 09 0d 09 2f 2a 20 72 65 |se 0 :..|.../* re|
|00000100| 74 75 72 6e 20 74 65 73 | 74 20 6e 61 6d 65 20 2a |turn tes|t name *|
|00000110| 2f 0d 09 09 72 65 74 75 | 72 6e 20 28 22 75 6e 65 |/...retu|rn ("une|
|00000120| 71 75 61 6c 42 79 74 65 | 22 29 3b 09 09 09 0d 09 |qualByte|");.....|
|00000130| 09 62 72 65 61 6b 3b 0d | 09 63 61 73 65 20 31 20 |.break;.|.case 1 |
|00000140| 3a 09 09 09 2f 2a 72 65 | 74 75 72 6e 20 74 65 73 |:.../*re|turn tes|
|00000150| 74 20 64 65 73 63 72 69 | 70 74 69 6f 6e 20 2c 20 |t descri|ption , |
|00000160| 69 6e 63 6c 75 64 69 6e | 67 20 74 65 73 74 20 70 |includin|g test p|
|00000170| 61 72 61 6d 65 74 65 72 | 73 20 69 6e 20 d2 d3 20 |arameter|s in .. |
|00000180| 2a 2f 20 0d 09 09 72 65 | 74 75 72 6e 20 28 22 d2 |*/ ...re|turn (".|
|00000190| 6f 6e 65 2c 31 2c 42 d3 | 20 21 3d 20 d2 61 6e 6f |one,1,B.| != .ano|
|000001a0| 74 68 65 72 2c 32 2c 42 | d3 20 62 79 74 65 2e 22 |ther,2,B|. byte."|
|000001b0| 29 3b 0d 09 09 62 72 65 | 61 6b 3b 0d 09 63 61 73 |);...bre|ak;..cas|
|000001c0| 65 20 32 20 3a 20 09 09 | 09 2f 2a 64 6f 20 67 75 |e 2 : ..|./*do gu|
|000001d0| 74 73 20 6f 66 20 74 65 | 73 74 20 6f 72 20 6d 61 |ts of te|st or ma|
|000001e0| 6b 65 20 63 61 6c 6c 20 | 74 6f 20 61 63 74 75 61 |ke call |to actua|
|000001f0| 6c 20 74 65 73 74 20 70 | 72 6f 63 65 64 75 75 72 |l test p|roceduur|
|00000200| 65 20 2a 2f 0d 09 09 6f | 6e 65 20 3d 20 28 63 68 |e */...o|ne = (ch|
|00000210| 61 72 29 20 73 65 6c 65 | 63 74 6f 72 20 5b 31 5d |ar) sele|ctor [1]|
|00000220| 3b 0d 09 09 61 6e 6f 74 | 68 65 72 20 3d 20 28 63 |;...anot|her = (c|
|00000230| 68 61 72 29 20 73 65 6c | 65 63 74 6f 72 20 5b 32 |har) sel|ector [2|
|00000240| 5d 3b 0d 09 09 69 66 20 | 28 6f 6e 65 20 3d 3d 20 |];...if |(one == |
|00000250| 61 6e 6f 74 68 65 72 29 | 0d 09 09 09 7b 09 72 65 |another)|....{.re|
|00000260| 74 75 72 6e 20 28 22 45 | 71 75 61 6c 2e 22 29 3b |turn ("E|qual.");|
|00000270| 09 7d 20 20 2f 2a 69 6e | 20 74 65 73 74 20 72 65 |.} /*in| test re|
|00000280| 74 75 72 6e 20 61 20 73 | 74 72 69 6e 67 20 66 6f |turn a s|tring fo|
|00000290| 72 20 74 68 65 20 74 65 | 73 74 2a 2f 0d 09 09 65 |r the te|st*/...e|
|000002a0| 6c 73 65 09 09 09 09 09 | 09 09 2f 2a 66 61 69 6c |lse.....|../*fail|
|000002b0| 69 6e 67 20 6f 72 20 6e | 69 6c 20 66 6f 72 20 74 |ing or n|il for t|
|000002c0| 65 73 74 20 70 61 73 73 | 65 73 20 2a 2f 0d 09 09 |est pass|es */...|
|000002d0| 09 7b 09 72 65 74 75 72 | 6e 20 28 6e 69 6c 29 3b |.{.retur|n (nil);|
|000002e0| 09 7d 3b 0d 09 09 62 72 | 65 61 6b 3b 0d 09 64 65 |.};...br|eak;..de|
|000002f0| 66 61 75 6c 74 20 3a 0d | 09 09 72 65 74 75 72 6e |fault :.|..return|
|00000300| 20 28 6e 69 6c 29 3b 0d | 09 09 62 72 65 61 6b 3b | (nil);.|..break;|
|00000310| 0d 09 7d 3b 0d 72 65 74 | 75 72 6e 20 28 6e 69 6c |..};.ret|urn (nil|
|00000320| 29 3b 0d 7d 0d 0d 2f 2a | 0d 6d 61 6b 65 20 69 6e |);.}../*|.make in|
|00000330| 73 74 72 75 63 74 69 6f | 6e 73 0d 63 20 75 6e 65 |structio|ns.c une|
|00000340| 71 75 61 6c 42 79 74 65 | 2e 63 20 2d 72 20 2d 62 |qualByte|.c -r -b|
|00000350| 20 2d 74 20 2d 73 79 6d | 20 6f 66 66 20 2d 6d 62 | -t -sym| off -mb|
|00000360| 67 20 6f 66 66 20 2d 73 | 20 7b 44 65 66 61 75 6c |g off -s| {Defaul|
|00000370| 74 7d 20 2d 6f 20 75 6e | 65 71 75 61 6c 42 79 74 |t} -o un|equalByt|
|00000380| 65 2e 63 2e 6f 0d 6c 69 | 6e 6b 20 20 2d 6d 66 20 |e.c.o.li|nk -mf |
|00000390| 2d 72 74 20 64 73 63 74 | 3d 31 30 34 34 20 2d 73 |-rt dsct|=1044 -s|
|000003a0| 67 20 75 6e 65 71 75 61 | 6c 42 79 74 65 3d 22 4d |g unequa|lByte="M|
|000003b0| 61 69 6e 22 20 2d 6d 20 | 22 54 48 45 54 45 53 54 |ain" -m |"THETEST|
|000003c0| 22 09 09 b6 0d 09 09 09 | 2d 73 79 6d 20 6f 66 66 |".......|-sym off|
|000003d0| 09 09 09 09 09 09 09 b6 | 0d 09 09 09 22 75 6e 65 |........|...."une|
|000003e0| 71 75 61 6c 42 79 74 65 | 2e 63 2e 6f 22 20 09 09 |qualByte|.c.o" ..|
|000003f0| 09 09 09 b6 0d 09 09 09 | 20 2d 6f 20 22 44 69 73 |........| -o "Dis|
|00000400| 63 69 70 6c 69 6e 65 20 | 53 74 61 72 74 75 70 22 |cipline |Startup"|
|00000410| 20 20 0d 0d 6d 61 6b 65 | 20 73 75 72 65 20 74 68 | ..make| sure th|
|00000420| 65 20 64 73 63 74 20 6e | 75 6d 62 65 72 20 69 73 |e dsct n|umber is|
|00000430| 20 75 6e 69 71 75 65 20 | 61 6e 64 20 74 68 65 20 | unique |and the |
|00000440| 73 65 67 6d 65 6e 74 20 | 6e 61 6d 65 20 69 73 20 |segment |name is |
|00000450| 74 68 65 20 73 61 6d 65 | 20 61 73 20 74 68 65 20 |the same| as the |
|00000460| 74 65 73 74 20 6e 61 6d | 65 0d 2a 2f 00 00 00 00 |test nam|e.*/....|
|00000470| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000480| 00 00 01 00 00 00 01 6e | 00 00 00 6e 00 00 00 3e |.......n|...n...>|
|00000490| 72 51 75 65 72 79 20 31 | 0d 08 25 25 45 4f 46 0d |rQuery 1|..%%EOF.|
|000004a0| 5e 65 0d 5e 69 20 5e 69 | 20 6d 6f 76 65 74 6f 0d |^e.^i ^i| moveto.|
|000004b0| 0d 75 6e 65 71 75 61 6c | 42 79 74 65 2e 63 02 00 |.unequal|Byte.c..|
|000004c0| 00 00 54 45 58 54 4d 50 | 53 20 01 00 00 00 00 c0 |..TEXTMP|S ......|
|000004d0| 00 00 54 45 58 54 4d 50 | 53 20 01 00 00 00 00 c0 |..TEXTMP|S ......|
|000004e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004f0| 00 00 a0 49 97 ba 00 00 | 03 ec 00 00 01 ac 20 62 |...I....|...... b|
|00000500| 65 67 69 6e 20 65 78 69 | 74 73 65 72 76 65 72 0d |egin exi|tserver.|
|00000510| 25 25 45 6e 64 45 78 69 | 74 53 65 72 76 65 72 0d |%%EndExi|tServer.|
|00000520| cd 25 21 50 53 2d 41 64 | 6f 62 65 2d 32 2e 30 0d |.%!PS-Ad|obe-2.0.|
|00000530| 25 25 54 69 74 6c 65 3a | 20 5e 52 53 54 52 20 e0 |%%Title:| ^RSTR .|
|00000540| 05 00 00 0d 25 25 43 72 | 65 61 74 6f 72 3a 20 5e |....%%Cr|eator: ^|
|00000550| 50 09 10 0d 25 25 50 61 | 67 65 42 6f 75 6e 64 69 |P...%%Pa|geBoundi|
|00000560| 6e 67 42 6f 78 3a 20 32 | 39 2e 35 32 20 33 32 20 |ngBox: 2|9.52 32 |
|00000570| 35 38 32 2e 34 38 20 37 | 36 32 0d 25 25 46 6f 72 |582.48 7|62.%%For|
|00000580| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 30 |...H..Mo|naco...0|
|00000590| 00 01 3b b4 80 0a 80 0a | 80 0a 7f f5 00 8c 00 14 |..;.....|........|
|000005a0| 00 8c 02 2e 01 ce 00 06 | 00 04 00 2a 00 03 03 29 |........|...*...)|
|000005b0| 02 1c 00 54 00 ee 01 f0 | 03 36 a4 27 3c 45 00 00 |...T....|.6.'<E..|
|000005c0| 02 a6 00 00 03 ec 00 00 | 00 6a 01 00 00 00 00 1e |........|.j......|
|000005d0| 00 2a 00 03 03 29 02 1c | 00 54 00 ee 01 f0 03 36 |.*...)..|.T.....6|
|000005e0| 00 00 00 6a 00 00 00 00 | 00 00 00 00 00 00 00 00 |...j....|........|
|000005f0| 01 00 00 00 01 6e 00 00 | 00 6e 00 00 00 3e 00 48 |.....n..|.n...>.H|
|00000600| 88 f8 08 16 00 00 00 1c | 00 3e 00 00 4d 50 53 52 |........|.>..MPSR|
|00000610| 00 01 00 0a 03 ed ff ff | 00 00 00 00 00 00 00 00 |........|........|
|00000620| 03 f0 ff ff 00 00 00 4c | 00 4a 70 3c 00 00 00 00 |.......L|.Jp<....|
|00000630| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000660| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000670| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+